-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated visualization scripts for beam-beam collision example #4797
Updated visualization scripts for beam-beam collision example #4797
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this you didn't modify this portion of the file, but we might as well just fix it.
Can you change line 14
This solver computes the average velocity of each species, and solves the corresponding relativistic Poisson equation (see the WarpX documentation for
warpx.do_electrostatic = relativistic for more detail). This solver accurately reproduced the subtle cancellation that occur for some component of the ``E + v x B`` terms which are crucial in simulations of relativistic particles.
to
This solver computes the average velocity of each species, and solves the corresponding relativistic Poisson equation (see the WarpX documentation for ``warpx.do_electrostatic = relativistic`` for more details). This solver accurately reproduces the subtle cancellation that occurs for some components of ``E + v x B``, which is crucial in simulations of relativistic particles.
@@ -68,3 +67,191 @@ The small-scale simulation has been performed with a resolution of ``nx = 64, ny | |||
:width: 100% | |||
|
|||
Beam-beam collision benchmark against :cite:t:`ex-Yakimenko2019`. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add here a brief description of the visualization scripts?
Also, it would be nice to add an image from the full diagnostics to show what the script is supposed to produce.
|
||
# You can copy this file from Examples/Physics_applications/beam-beam_collisions/Plot_full_.py | ||
# Contents of Plot_full_.py | ||
from openpmd_viewer import OpenPMDTimeSeries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation from here on, otherwise it's not recognized as part of the code block.
|
||
# You can copy this file from Examples/Physics_applications/beam-beam_collisions/Plot_reduced_.py | ||
# Contents of Plot_reduced_.py | ||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same indentation issue here.
for more information, see https://pre-commit.ci
… BB_Collision_Example
updated vizs
for more information, see https://pre-commit.ci
restore plot fields
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some changes here Haavaan#9
but I don't have the rights to push them.
We have presented here the modified full and reduced beam-beam collision diagnostics that also includes the python scripts. In the full diagnostics, we have simulated the evolution of the E, B, and Rho fields across the x and y slices. While in the reduced diagnostics, we have simulated the evolution of the number of photons emitted per beam particle and the number of secondary pairs generated per beam particle produced when two ultra-relativistic particle beams collide in a linear collider.